package com.ciaojian.core.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ciaojian.core.mapper.StoreMapper;
import com.ciaojian.core.model.Store;
import com.ciaojian.core.model.vo.FranchiseesStoreVo;

import java.util.List;

/**
 * @author Atlakyn
 */
public abstract class StoreService extends ServiceImpl<StoreMapper, Store> {
    /**
     * 查询发型师所属门店
     *
     * @param workerId 发型师ID
     * @return 所属门店
     */
    public Store getStoreByWorker(Integer workerId) {
        return this.baseMapper.getByWorkerId(workerId);
    }

    /**
     * 根据Id查询店名
     *
     * @param id /
     * @return /
     */
    public String getTitleById(Integer id) {
        return this.baseMapper.getTitleById(id);
    }

}
